package com.ibm.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import com.ibm.util.exception.CPSException;

public class LogPropertiesReader {

	public static void main(String[] args) throws CPSException {
		getLogProperties();
	}

	public static Properties getLogProperties() throws CPSException {
		Properties properties = new Properties();
		try {
			properties.load(new FileInputStream(new File("server.properties")));
			System.out.println(properties.keySet());
			return properties;
		} catch (IOException e) {
			throw new CPSException(ErrorCode.INVALID_INPUT_ERROR,
					"Can't read property configure file in "
							+ LogPropertiesReader.class.getResource(
									"server.properties").getPath());
		}
	}
}
